Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Update ky to the latest version 🚀 #1090

Merged
merged 5 commits into from
Sep 4, 2019
Merged

Conversation

greenkeeper[bot]
Copy link
Contributor

@greenkeeper greenkeeper bot commented Sep 3, 2019

The dependency ky was updated from 0.11.2 to 0.13.0.

This version is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.


Publisher: sindresorhus
License: MIT

Release Notes for v0.13.0

Breaking

  • Pass input & options arguments to beforeRequest & afterResponse hooks (#163) 9181aa2
 await ky('…', {
 	hooks: {
 		beforeRequest: [
-			options => {}
+			(input, options) => {}
 		]
 		afterResponse: [
-			response => {}
+			(input, options, response) => {}
 		]
 	}
 });

Enhancements

  • Make the retry option more powerful (#110) d4ddb7a
    You can now control which HTTP methods and status codes that should cause a retry.
  • Simplify the Options TypeScript type (#165) bfdc9b5
    This should make it easier to wrap Ky when using TypeScript.

v0.12.0...v0.13.0

Commits

The new version differs by 11 commits.

  • 83dff35 0.13.0
  • 41960b6 Use prepare in npm run script (#171)
  • a50948a Clean up #110
  • d4ddb7a Make the retry option more powerful (#110)
  • 9181aa2 Pass input/options to beforeRequest/afterResponse hooks (#163)
  • bfdc9b5 Simplify the Options TypeScript type (#165)
  • a16c49b 0.12.0
  • 04b1477 Readme tweaks
  • 9c81d89 Fix passing a Request instance as input (#147)
  • 0a0427d Fix the BeforeRequestHook TypeScript type (#161)
  • 00266ea Fix the options TypeScript type (#162)

See the full diff


FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper bot 🌴

Alan Shaw added 4 commits September 4, 2019 12:29
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
License: MIT
Signed-off-by: Alan Shaw <[email protected]>
@alanshaw alanshaw merged commit a09b907 into master Sep 4, 2019
@alanshaw alanshaw deleted the greenkeeper/ky-0.13.0 branch September 4, 2019 13:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant